package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@ApiModel(value = "客户卡密响应")
public class ClientProductKeyListRes {
    /**
     * id
     */
    @JsonSerialize(
        using = ToStringSerializer.class
    )
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 卡密
     */
    @ApiModelProperty(value = "卡密")
    private List<String> cardKey;

    /**
     * 卡密
     */
    @ApiModelProperty(value = "数量")
    private Integer count ;

    /**
     * 卡密
     */
    @ApiModelProperty(value = "单价")
    private Double price;

    /**
     * 卡密
     */
    @ApiModelProperty(value = "总价")
    private Double totalValue;


    /**
     * 买家
     */
    @ApiModelProperty(value = "买家：邮箱或者手机号")
    private String buyer;

    /**
     * 买家
     */
    @ApiModelProperty(value = "支付类型")
    private String type;

    /**
     * 支付订单号
     */
    @ApiModelProperty(value = "支付订单号")
    private String tradeNo;

    /**
     * 买家
     */
    @ApiModelProperty(value = "商品名")
    private String name;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态 1未付款 2已付款 3已付款未发货 4已过期")
    private String status;

     /**
     * 商品类型
     */
    @ApiModelProperty(value = "商品类型:1售卖 2充值 9其他")
    private String productType;

}
